projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5273453
)
Add comment to last fix.
author
Chong Yidong
<cyd@stupidchicken.com>
Thu, 25 Sep 2008 00:11:36 +0000
(
00:11
+0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Thu, 25 Sep 2008 00:11:36 +0000
(
00:11
+0000)
lisp/term.el
patch
|
blob
|
history
diff --git
a/lisp/term.el
b/lisp/term.el
index a74e271f13a541fe354c2d7ba78f1b5d20935b63..3ab8069b408539456fe049bcb12d53de4bd3a6fa 100644
(file)
--- a/
lisp/term.el
+++ b/
lisp/term.el
@@
-2781,6
+2781,9
@@
See `term-prompt-regexp'."
str i))
(when (not funny) (setq funny str-length))
(cond ((> funny i)
+ ;; Decode the string before counting
+ ;; characters, to avoid garbling of certain
+ ;; multibyte characters (bug#1006).
(setq decoded-substring
(decode-coding-string
(substring str i funny)